<template>
    <view class="page">
        <index v-if="user" :user="user"></index>
        <login v-else></login>
    </view>
</template>

<script setup lang="ts">
import type { Iuser } from '@/interface';
import { inject } from 'vue';
import index from '@/components/user/index.vue';
import login from './login.vue';
const user = inject<Iuser>('user')




</script>

<style scoped lang="scss"></style>